<layout name="layout" />

<script src="{$uri}Public/Scripts/PSI/Permission/MainForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Permission/EditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Permission/SelectPermissionForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Permission/SelectUserForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Permission/SelectDataOrgForm.js?dt={$dtFlag}" type="text/javascript"></script>

<script>
  Ext.onReady(function () {
    var app = Ext.create("PSI.App", {
      userName: "{$loginUserName}",
      productionName: "{$productionName}",
      appHeaderInfo: {
        title: "{$title}",
        iconCls: "PSI-fid-8996"
      }
    });

    app.add(Ext.create("PSI.Permission.MainForm", {
      pAdd: "{$pAdd}",
      pEdit: "{$pEdit}",
      pDelete: "{$pDelete}"
    }));
  });
</script>
